<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateTimePeriodTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('time_period', function (Blueprint $table) {
            $table->bigIncrements('id');                        //时间段计费方案id
            $table->timestamp('start_time')->nullable();        //方案开始时间
            $table->timestamp('end_time')->nullable();          //方案结束时间
            $table->timestamps();                               //创建和更新的时间
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('time_period');
    }
}
